package Window;

import Tools.Tool;

import java.awt.*;

/**
 * 背景类
 */
public class BackGrund extends Tool {
    //绘制背景的方法
    public void paintSelf(Graphics g){
        g.drawImage(bgImg,0,0, bgImg.getWidth(null), bgImg.getHeight(null), null);
    }

    public void paintStr(Graphics g){
        g.drawString("分数",30,50);
    }

}
